
package tij4.ch11;

public class Pet
{

	private String name;
	
	public Pet(String name)
	{
		this.name = name;
	}

	public Pet()
	{
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	public String toString()
	{
		return name;
	}
	
}
